package linklist;

import java.util.Stack;

public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList<Integer> linkedList = new LinkedList<>();
        for(int i=0;i<5;i++){
            linkedList.addLast(i);
        }

        System.out.println(linkedList);
        System.out.println("++++++++++++++++++++");
        /*linkedList.set(1,333);
        System.out.println(linkedList);*/
        linkedList.removeLast();
        System.out.println(linkedList);



    }
}
